<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.* ,user.*" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getLocalPort()+request.getContextPath()+"/";
%>
<html>
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
 <%
 	List<User>sehunUser=new ArrayList<User>(); 
     sehunUser.add(new User("135676389@163.com",2001));
     sehunUser.add(new User("145676389@163.com",2002));
     sehunUser.add(new User("135676589@163.com",2003));
     sehunUser.add(new User("175676389@163.com",2004));
     sehunUser.add(new User("135676389@163.com",2005));
     sehunUser.add(new User("145676389@163.com",2006));
     sehunUser.add(new User("135676589@163.com",2007));
     sehunUser.add(new User("135676589@163.com",2008));
     sehunUser.add(new User("132676389@163.com",2009));
     sehunUser.add(new User("135676989@163.com",2010));
 
 	List<User> list = new ArrayList<User>();
 	request.setAttribute("list", sehunUser);
 %>

	<!--  表格显示数据 -->
	<table  border="1" width="70%">
		<tr>
			<td>用户名</td>
			<td>密码</td>
		</tr>
		<c:forEach var="baek" items="${list}">
			<tr>
				<td><c:out value=" ${baek.name}"></c:out></td>
				<td><c:out value=" ${baek.age}"></c:out></td>
			<tr />
		</c:forEach>
	</table>
</body>
</html>